package com.hupu.jrs.ui.content

import com.hupu.jrs.ui.BasePresenter
import com.hupu.jrs.ui.BaseView

/**
 * Created by sll on 2016/5/11.
 */
interface ContentContract {
    interface View : BaseView {
        fun showLoading()

        fun hideLoading()

        fun renderContent(page: Int, totalPage: Int)

        fun onUpdatePager(page: Int, totalPage: Int)

        fun setCurrentItem(index: Int)

        fun isCollected(isCollected: Boolean)

        fun onError(error: String)

        fun onToggleFloatingMenu()

        fun showLoginUi()

        fun showReportUi()

        fun showPostUi(title: String)
    }

    interface Presenter : BasePresenter<View> {

        fun onThreadInfoReceive(tid: String, fid: String, pid: String, page: Int)

        fun onReload()

        fun onRefresh()

        fun onPageNext()

        fun onPagePre()

        fun onPageSelected(page: Int)

        fun onCommendClick()

        fun onShareClick()

        fun onReportClick()

        fun onCollectClick()

        fun updatePage(page: Int)
    }
}
